﻿using System;

namespace Mojo.Widgets
{
    /// <summary>
    /// &lt;div x-mojo-element="RadioButton" id="radiobuttonId" class="radiobuttonClass" name="radiobuttonName"&gt;&lt;/div&gt;
    /// </summary>
    public class RadioButton
    {
    }

    public class RadioButtonAttributes : WidgetsCreateAttributes
    {
        /// <summary>
        /// Optional. Model property name for RadioButton state
        /// </summary>
        public string ModelProperty;

        /// <summary>
        /// Optional. Model property name for disabled boolean.
        /// </summary>
        public string DisabledProperty;

        /// <summary>
        /// Required. Array of button descriptions, each of which is a Choice entry; number of entries defines scope of widget.
        /// </summary>
        public Choice[]	Choices;
    }

    public class Choice
    {
        public string Label;
        public object Value;
    }

    public class RadioButtonModel : WidgetsCreateModel
    {
        /// <summary>
        /// Required. value of widget
        /// </summary>
        public object Value;

        /// <summary>
        /// Optional. If true, RadioButton is inactive.
        /// </summary>
        public bool Disabled;
    }
}
